import request from './index'

export function selectProcessDefineList(currentPage, pageSize) {
    return request({
        url: '/processDefine/pageList',
        headers: {
            repeatSubmit: false
        },
        method: 'post',
        data: { currentPage, pageSize }
    })
}


export function createProcessDefine(processDefine) {
    return request({
        url: '/processDefine/deploy',
        headers: {
            repeatSubmit: false
        },
        method: 'post',
        data: processDefine
    })
}

export function getProcessDefine(processDefineId) {
    return request({
        url: '/processDefine/' + processDefineId,
        headers: {
            repeatSubmit: false
        },
        method: 'get',
    })
}

